package com.demo.richText.Enum;

/**
 * @author lixing
 * @date 2021/9/23
 * @Description:
 */
public enum MessageEnum {

    //
    OK(200, "成功"),
    PARAMETER_ERROR(402,"参数错误"),
    MESSAGE_NOT_FOUND(404,"无结果数据");

    private final Integer code;
    private final String message;

    MessageEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }


    public String getMessage() {
        return message;
    }
}

